package com.design_pattern._02_structure._01_detector;

import java.io.File;

public class TestDriver {
    public static void main(String[] args) {
        // 点2个鸡蛋的一斤牛肉的面条（可以不断装饰，通过继承，对于100个鸡蛋的面条，无可奈何）
        Noodles noodles = new Noodles();
        INoodles eggDecorator = new EggDecorator(noodles);
        INoodles eggDecorator2 = new EggDecorator(eggDecorator);
        INoodles beefDecorator = new BeefDecorator(eggDecorator2);
        beefDecorator.cook();
    }
}
